import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import * as echarts from "echarts";
import ElementUI from "element-ui";
import GlobalComponent from "./components/index";
import Api from "./api/index.js";
import * as Columns from "./assets/js/columns.js";
import quinn from "./utils/quinn";
import "element-ui/lib/theme-chalk/index.css";
import "./assets/css/index.less";
import { API_HOST, IMG_HOST, $acc, PRO_CONFIG } from "@/assets/js/define.js";
import './style/public.css'
import DialogPlugin from './views/Pages/dialog.js';  

import VueTypedJs from 'vue-typed-js';

Vue.use(VueTypedJs);
Vue.use(DialogPlugin); 
//dialog点击遮罩层不关闭 全局处理
ElementUI.Dialog.props.closeOnClickModal.default = false;

Vue.use(Api);
Vue.use(ElementUI);
Vue.use(GlobalComponent);
Vue.prototype.$echarts = echarts;
Vue.prototype.$columns = Columns;
Vue.prototype.$quinn = quinn;
Vue.prototype.$acc = $acc;
Vue.prototype.$apiHost = API_HOST;
Vue.prototype.$imgHost = IMG_HOST;
Vue.prototype.$proConfig = PRO_CONFIG;
window.$quinn = Vue.prototype.$quinn;

window.vue = new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
